import fetch from 'utils/fetch';
// 电销渠道分页
export function getSpreadPage(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getSpreadPage',
        method: 'post',
        data: obj
    });
}
// 广告渠道分页
export function getAdPage(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getAdPage',
        method: 'post',
        data: obj
    });
}
// URL渠道配置分页
export function loanAppUrlPage(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanAppUrlPage',
        method: 'post',
        data: obj
    });
}
// 添加渠道配置
export function loanAppUrlSave(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanAppUrlSave',
        method: 'post',
        data: obj
    });
}
// 删除渠道配置
export function loanAppUrlDelete(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanAppUrlDelete',
        method: 'get',
        params: query
    });
}
// URL派单分页
export function loanCollectorUrlPage(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanCollectorUrlPage',
        method: 'post',
        data: obj
    });
}
// URL派单保存 
export function loanCollectorUrlSave(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanCollectorUrl/save',
        method: 'post',
        data: obj
    });
}
// 点击生成URL
export function generateCollectorUrl(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanCollectorUrl/generateCollectorUrl',
        method: 'post',
        data: obj
    });
}
// 渠道下对应的所有包名
export function appNameByChannel(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/loanAppUrlQueryAppNameByChannel',
        method: 'get',
        params: query
    });
}